package si.sp.socialnetwork;

import java.util.ArrayList;
import java.util.Iterator;

public class Test {

	public static void main(String[] args) {
		
		DatabaseBean db_bean = new DatabaseBean();
		int id = 1;
		ArrayList<String> krogi = db_bean.getKrogiForUserID(id);		
		System.out.println("--> Krogi od IDja " + id + ": \n" + krogi);
		System.out.println("========================================================");
		
		ArrayList<User> users = db_bean.getUsers();
		Iterator<User> itr = users.iterator();
		System.out.println("--> Userji: ");
	    while (itr.hasNext()) {
	      User element = itr.next();
	      System.out.print(element + " ");
	      System.out.println();
	    }
	    System.out.println("========================================================");

	}

}
